import {
  Injectable
} from '@angular/core';

import {
  Headers
} from '@angular/http';

@Injectable({
  providedIn: 'root'
})

export class ApiService {

  constructor() {}

  getUrl(): string {
    return 'http://172.23.221.138:8000/'
  }

  getHeaders(): Headers {
    return new Headers({
      // 'Content-Type': 'application/json',
      // 'withCredentials': 'true',
      'Access-Control-Allow-Origin': '*',
      // 'Access-Control-Allow-Credentials': 'true',
      // 'Access-Control-Allow-Origin': '*'
    });
  }
}